19693de19e147e44df80314bcde7904ba24a642b,src/uz/efir/muazzin/Muazzin.java,QiblaCompassFragment,updateDms,#,381
Before Change
*/
private void updateDms() {
net.sourceforge.jitl.astro.Location location = sPreferences.getJitlLocation();
DecimalFormat df = new DecimalFormat("#.###");
Dms latitude = new Dms(location.getDegreeLat());
Dms longitude = new Dms(location.getDegreeLong());
Dms qibla = Jitl.getNorthQibla(location);
sQiblaDirection = (float)qibla.getDecimalValue(net.sourceforge.jitl.astro.Direction.NORTH);
mLatDegree.setText(String.valueOf(latitude.getDegree()));
mLatMinute.setText(String.valueOf(latitude.getMinute()));
mLatSecond.setText(df.format(latitude.getSecond()));
mLongDegree.setText(String.valueOf(longitude.getDegree()));
mLongMinute.setText(String.valueOf(longitude.getMinute()));
mLongSecond.setText(df.format(longitude.getSecond()));
mQiblaDegree.setText(String.valueOf(qibla.getDegree()));
mQiblaMinute.setText(String.valueOf(qibla.getMinute()));
mQiblaSecond.setText(df.format(qibla.getSecond()));
}
}
}
After Change
sQiblaDirection = (float)qibla.getDecimalValue(net.sourceforge.jitl.astro.Direction.NORTH);
View rootView = getView();
TextView tv = (TextView)rootView.findViewById(R.id.current_latitude);
tv.setText(getString(R.string.degree_minute_second,
latitude.getDegree(),
latitude.getMinute(),
DF.format(latitude.getSecond())));
tv = (TextView)rootView.findViewById(R.id.current_longitude);
tv.setText(getString(R.string.degree_minute_second,
longitude.getDegree(),
longitude.getMinute(),
DF.format(longitude.getSecond())));
tv = (TextView)rootView.findViewById(R.id.current_qibla);
tv.setText(getString(R.string.degree_minute_second,
qibla.getDegree(),
qibla.getMinute(),
DF.format(qibla.getSecond())));
}
}
}